createprocedure[dbo].[BAEOrderAttributeGetAllForProductCount]@OrderProductIDas int AS SELECTCount(ospa.OrderSuperProductAttributeID)ASCount FROMOrderSuperProductAttributeASospaJOINOrderSuperProductAttributeLookupASospalON ospa.OrderSuperProductAttributeID=ospal.OrderSuperProductAttributeID WHEREospal.OrderProductID=@OrderProductID